	<?php
	 
	include("myclass.php");
	 
	$pr=new OopsProgram();
	 
	$pr->makeConnect("localhost","root","","tech","student");
	 
	echo("checking started");
	if(isset($_POST['submit']))
	{
	 
	    if($pr->checkUser($_POST['user_name'],$_POST['password']))
	 
	        {
				
    	$MM_redirectLoginSuccess = "registration.php";
	     // echo("You are inside System");	 
	        }
	 
	    else
	 
	        {
	 $MM_redirectLoginSuccess = "registration.php";

	        //    echo($pr->displayForm());
			
		//	echo("not found");
	 
	        }
	 
	}
	 
	else
	 
	{
	 
	    echo($pr->displayForm());
	}
	?>
